package cn.imvc.app.models;


import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Page;

import cn.imvc.app.entities.Member;
import cn.imvc.app.entities.MemberRed;
import cn.imvc.app.entities.Red;
import cn.imvc.data.domain.ViewRequest;

public interface MemberRedModel{
	Page<MemberRed> find(ViewRequest viewRequest);

	MemberRed get(int id);

	MemberRed save(MemberRed entity);

	MemberRed update(MemberRed entity);

	void delete(int id);

	void deleteBatch(int[] ids);
	
	List<MemberRed> findAllRed(Integer memberId);
	
	Map<String, Object> sendRed(Member member,Red red);
	
}